package com.clotingshoppos.modules.order.entity;

import com.clotingshoppos.common.base.BaseEntity.BaseEntity;
import org.hibernate.annotations.ColumnDefault;

import javax.persistence.*;

/**
 * @ClassName: OrderEntity
 * @Description:
 * @Author: zhandad
 * @Date: 2019-03-25 10:20
 * @Version: v1.0
 */
@Entity
@Table(name = "order_history", schema = "clothing_shop_pos", catalog = "")
public class OrderEntity extends BaseEntity {
    @Column(name = "stuff", nullable = true)
    private String stuff;        //收银员
    @Column(name = "t_price", nullable = true, precision = 0)
    private Double tPrice;        //订单总价
    @Column(name = "method", nullable = true, length = 16)
    private String method;        //支付方式
    @Column(name = "receivable", nullable = true, precision = 0)
    private Double receivable;    //应收
    @Column(name = "proceeds", nullable = true, precision = 0)
    private Double proceeds;      //实收
    @Column(name = "t_change", nullable = true, precision = 0)
    private Double change;        //找零
    @Column(name = "t_status", nullable = true, length = 10)
    private String status;        //订单状态

    public String getStuff() {
        return stuff;
    }

    public void setStuff(String stuff) {
        this.stuff = stuff;
    }

    public Double gettPrice() {
        return tPrice;
    }

    public void settPrice(Double tPrice) {
        this.tPrice = tPrice;
    }

    public String getMethod() {
        return method;
    }

    public void setMethod(String method) {
        this.method = method;
    }

    public Double getReceivable() {
        return receivable;
    }

    public void setReceivable(Double receivable) {
        this.receivable = receivable;
    }

    public Double getProceeds() {
        return proceeds;
    }

    public void setProceeds(Double proceeds) {
        this.proceeds = proceeds;
    }

    public Double getChange() {
        return change;
    }

    public void setChange(Double change) {
        this.change = change;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }



    @Override
    public String toString() {
        return "OrderEntity{" +
                ", stuff=" + stuff +
                ", tPrice=" + tPrice +
                ", method='" + method + '\'' +
                ", receivable=" + receivable +
                ", proceeds=" + proceeds +
                ", change=" + change +
                ", status='" + status + '\'' +
                '}';
    }
}
